﻿using System.Collections.Generic;
using System.Linq.Expressions;
using System.Text;
using System.Web.Mvc.Ajax;
using System.Web.Routing;

namespace System.Web.Mvc.Html
{
    public static class HtmlExtensions
    {
        public static MvcHtmlString DatePicker(this HtmlHelper html, string name, string value = "")
        {
            return html.TextBox(name, value, new { @class = "datepicker" });
        }

        public static MvcHtmlString DatePickerFor<TModel, TProperty>(this HtmlHelper<TModel> html, Expression<Func<TModel, TProperty>> expression)
        {
            return html.TextBoxFor<TModel, TProperty>(expression, new { @class = "datepicker" });
        }
    }
}
